package com.lucweb.service.impl;


import com.lucweb.dao.TodayDao;
import com.lucweb.entity.TaskToday;
import com.lucweb.service.TodayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("todayService")
public class TodayServiceImpl implements TodayService {
    @Resource
    private TodayDao todayDao;


    @Override
    public String newtodayTask() {

        return null;
    }

    @Override
    public void saveOrUpdate(TaskToday tasktoday) {
        todayDao.saveOrUpdate(tasktoday);

    }

    @Override
    public TaskToday gettasktodayById(int taskId) {
        return this.todayDao.gettodayById(taskId);
    }

    @Override
    public boolean deletetodaytask(int taskId) {
        todayDao.deletetoday(taskId);
        return true;
    }

    @Override
    public List<TaskToday> showtoday() {
        return this.todayDao.showtoday();
    }

    @Override
    public int getmaxId() {
        return this.todayDao.getmaxId();
    }

    @Override
    public List<TaskToday> showtodaybycompany(String company) {
        return this.todayDao.todayList(company);
    }

    @Override
    public List<String> taskshow() {
        return this.todayDao.taskShow();
    }
}
